package com.cw.mapper;

import com.cw.beans.*;
import com.cw.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;

@Mapper
public class AssetMapperImpl implements  AssetMapper{

    @Autowired
    private AssetMapper assetMapper;


    public ArrayList<Asset> getFiveAsset() {
        return assetMapper.getFiveAsset();
    }


    public ArrayList<Asset> getAllAssets(Asset asset, Page page) {
        return assetMapper.getAllAssets(asset,page);
    }


    public int getAllAssets1(Asset asset) {
        return assetMapper.getAllAssets1(asset) ;
    }


    public int getUpAsset() {
        return assetMapper.getUpAsset();
    }




    public int getAllAssetSum() {
        return assetMapper.getAllAssetSum();
    }


    public int getUseAsset() {
        return assetMapper.getUseAsset();
    }


    public int getNoUseAsset() {
        return assetMapper.getNoUseAsset();
    }

    public ArrayList<Zc_type_num> getAssetByByte(String type) {
        return assetMapper.getAssetByByte();
    }


    public ArrayList<Zc_type_num> getAssetByByte() {
        return assetMapper.getAssetByByte();
    }


    public Integer getMonthMany(String time) {
        return assetMapper.getMonthMany(time);
    }


    public void updateAssetMaintain(int id) {

    }

    @Override
    public int getState(int id) {
        return assetMapper.getState(id);
    }

    public Integer getnum(Integer dept_id) {
        System.out.println("id"+dept_id);
        return assetMapper.getnum(dept_id);
    }

    public Integer getvalue(Integer dept_id) {
        return assetMapper.getvalue(dept_id);
    }

    public Integer getnum1(Integer dept_id) {
        return assetMapper.getnum1(dept_id);
    }

    public Integer getvalue1(Integer dept_id) {
        return assetMapper.getvalue1(dept_id);
    }

    public Integer getnum2(Integer dept_id) {
        return assetMapper.getnum2(dept_id);
    }

    public Integer getvalue2(Integer dept_id) {
        return assetMapper.getvalue2(dept_id);
    }

    public void setAsset(Asset asset) {
        assetMapper.setAsset(asset);
    }

//    public Asset getAssetId() {
//        return assetMapper.getAssetId();
//    }

    public void setAssetState(Integer zcAsset) {
        assetMapper.setAssetState(zcAsset);
    }
}
